<!-- 蓝牙和位置都需要打开-->
<template>
	<view class="content">
		<view class="header-view">
			<!-- <button @click="ToTest()">测试</button> -->
			<uni-row>
				<uni-col :span="15">
					<view class="print-view">标签打印机：<text class="print-name">{{titlePrintName}}</text></view>
				</uni-col>
				<uni-col :span="3">
					<view class="print-btn" @click="printTitleTemplate()">模板</view>
				</uni-col>
				<uni-col :span="3">
					<view class="print-btn" @click="printTitleTest()">测试</view>
				</uni-col>
				<uni-col :span="3">
					<view class="print-btn clear-btn" @click="printClear(1)">清除</view>
				</uni-col>
			</uni-row>
			<uni-row>
				<uni-col :span="15">
					<view class="print-view">运单打印机：<text class="print-name">{{orderPrintName}}</text></view>
				</uni-col>
				<uni-col :span="3">
					<view class="print-btn" @click="printOrderTemplate()">模板</view>
				</uni-col>
				<uni-col :span="3">
					<view class="print-btn" @click="printOrderTest()">测试</view>
				</uni-col>
				<uni-col :span="3">
					<view class="print-btn clear-btn" @click="printClear(2)">清除</view>
				</uni-col>
			</uni-row>
		</view>
		
		<view class="device_list">
			<view v-for="(item,index) in deviceList" :key="index" class="device_item" v-if="item.name.length>0">
				<view class="text1">打印机: {{item.name }} </view>
				<view class="text2">设备名称: {{item.address}}</view>
				<view class="device_list_btn_view">
					<view class="device_list_btn_item" @click="settingTitlePrint(item)">设为标签打印机</view>
					<view class="device_list_btn_item" @click="settingOrderPrint(item)">设为运单打印机</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import listitem from './pringSetting.js';
	
	export default {
		mixins: [listitem], // 注意此处还需使用MescrollMoreItemMixin (必须写在MescrollMixin后面)
		data() {
			return {
	
			};
		},
		methods: {
	
		}
	};
</script>

<style lang="scss">
	@import './pringSetting.scss';
</style>